<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * 
 */
class Main extends Admin_Controller {
	public function index()
	{
		$data = [];
		$this->load->model('admin/Category_model');
		$data['category'] = $this->Category_model->total_rows();
		$this->load->model('admin/Content_model');
		$data['content'] = $this->Content_model->total_rows();
		$this->load->model('admin/Adscate_model');
		$data['adscate'] = $this->Adscate_model->total_rows();
		$this->load->model('admin/Ads_model');
		$data['ads'] = $this->Ads_model->total_rows();
		$this->load->model('admin/Links_model');
		$data['links'] = $this->Links_model->total_rows();
		$data['nav'] = $this->get_nav();
		$this->load->view($this->view, $data);
	}
}